<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>谁不说俺家乡好 - 头部标题</title>
    <style>
        /* 头部标题样式 */
        body {
            margin: 0;
            padding: 0;
            background-color: #f0e68c;
            background-image: url('../image/split-1.png');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh;
            font-family: "Microsoft YaHei", "SimSun", serif;
            color: #8B4513;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }
        
        .header-content {
            text-align: center;
            padding: 20px;
            background-color: rgba(255, 255, 255, 0.7);
            border-radius: 10px;
            backdrop-filter: blur(5px);
            border: 2px solid #8B4513;
        }
        
        .header-title {
            font-size: 36px;
            font-weight: bold;
            margin: 0 0 10px 0;
            font-family: "SimSun", serif;
            letter-spacing: 5px;
            animation: titleAnimation 2s ease-in-out;
        }
        
        .header-subtitle {
            font-size: 18px;
            margin: 0;
            font-style: italic;
        }
        
        /* 传统中国风装饰 */
        .chinese-decoration {
            width: 100px;
            height: 100px;
            margin: 10px auto;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,0 C77.6,0 100,22.4 100,50 C100,77.6 77.6,100 50,100 C22.4,100 0,77.6 0,50 C0,22.4 22.4,0 50,0 Z" fill="none" stroke="%238B4513" stroke-width="2"/><path d="M50,10 L50,90 M10,50 L90,50" stroke="%238B4513" stroke-width="2"/><circle cx="50" cy="50" r="30" fill="none" stroke="%238B4513" stroke-width="2"/></svg>');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
        }
        
        /* 动画效果 */
        @keyframes titleAnimation {
            0% {
                opacity: 0;
                transform: translateY(-20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .header-title {
                font-size: 28px;
            }
            
            .header-subtitle {
                font-size: 16px;
            }
            
            .chinese-decoration {
                width: 80px;
                height: 80px;
            }
        }
    </style>
</head>
<body>
    <div class="header-content">
        <h1 class="header-title">谁不说俺家乡好</h1>
        <div class="chinese-decoration"></div>
        <p class="header-subtitle">浙江风光美如画，人杰地灵好家园</p>
    </div>
    
    <script>
        // 随机切换背景图片效果
        function changeBackgroundImage() {
            const images = ['../image/split-1.png', '../image/split-2.png', '../image/split-3.png', '../image/splits/split-4.png'];
            const randomImage = images[Math.floor(Math.random() * images.length)];
            document.body.style.backgroundImage = `url('${randomImage}')`;
        }
        
        // 每30秒切换一次背景图片
        setInterval(changeBackgroundImage, 30000);
        
        // 添加页面加载动画
        window.addEventListener('load', function() {
            const headerContent = document.querySelector('.header-content');
            headerContent.style.opacity = '0';
            headerContent.style.transition = 'opacity 1s ease-in-out';
            
            setTimeout(function() {
                headerContent.style.opacity = '1';
            }, 300);
        });
    </script>
</body>
</html>